package com.hsh.gaoqianlianmeng.service.impl;

import com.hsh.gaoqianlianmeng.common.Result;
import com.hsh.gaoqianlianmeng.constants.filepath.GlobalPathConstants;
import com.hsh.gaoqianlianmeng.constants.filepath.YangBGPathConstants;
import com.hsh.gaoqianlianmeng.domain.Shop;
import com.hsh.gaoqianlianmeng.service.ShopService;
import com.hsh.gaoqianlianmeng.utils.POIExcelUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺 Service
 */
@Service
public class ShopServiceImpl implements ShopService {

    @Override
    public Result<List<Shop>> getShop() {
        List<Shop> shops = POIExcelUtils.read(GlobalPathConstants.GLOBAL_FOLDER + GlobalPathConstants.SHOP_LIST, Shop.class);
        return Result.success(shops);
    }
}
